
var xmlhttp;
var response = '';
var sep = ',';
var currentid;
var succ = 1;

$( addnew );


$(document).ready(function() {
	//$('body').css("font-size", "1em");

	$("table#mymain").css("background-color", "#D1E5EB");
	//$("table#head td").css("background-color", "LightGoldenRodYellow");

	$("table#mymain").css("border", "1px dotted #6E7FC9");
	$("table#mymain td").css("border", "1px dotted black");
	$("table#myDetail td").css("border", "1px dotted #6E7FC9");
	$("td.value").css("text-align", "left");


	$("table#myDetail").css("border", "1px solid #6E7FC9");
	$("table#myDetail th").css("background-color", "Silver ");
	$("table#myDetail th").css("color", "RoyalBlue");

	$("th").css("border", "1px dotted #6E7FC9");

	//$("table#myTotal").css("border", "1px solid black");
	$("table#myTotal td").css("border", "1px solid white");

	$('.actiondelrow').css("font-size", "0.8em");

	$('.css_corner').css("border-radius", "21px");
	$('.css_corner').css("-moz-border-radius", "21px");
	$('.css_corner').css("-webkit-border-radius", "21px");
	$('.css_corner').css("border", "2px solid #6E7FC9");
	$('.css_corner').css("text-align", "center");
	$('.css_corner').css("background-color", "#D1E5EB");
	$('.css_corner').css("color", "#9C4147");
	//$('.title').css("font-family", "ABeeZee") ;
	$('.title').css("line-height", "1em") ;
	$('.title').css("font-size", "2em") ;
	$('.title').css("color", "RoyalBlue  ") ;
	$('.title').css("text-shadow", "4px 2px 4px #C2C2C2") ;

	$( "#ngay1" ).datepicker({dateFormat:"dd/mm/yy"});

	$("input").keydown(function(){
		//alert(event.keyCode );
		var self = $(this)
		  , form = self.parents('form:eq(0)')
		  , focusable
		  , next
		  ;
		if (event.keyCode == 13) {
			focusable = form.find('input').filter(':text');
			next = focusable.eq(focusable.index(this)+1);
			if (next.length) {
				//alert(event.keyCode );
				next.focus();
			} else {
			}
			return false;
		}

		
	});
	
 
});



